anchor.diff:  
   		// Everything following this line is VERY hot. How hot depends on the map format
   		// (Yes this does mean dmm is technically faster to parse. shut up)
  -
  -		// This is the "is this map tgm" check
  -		if(key_len == line_length)
  -			// Wanna clear something up about maps, talking in 255x255 here
  -			// In the tgm format, each gridset contains 255 lines, each line representing one tile, with 255 total gridsets
  -			// In the dmm format, each gridset contains 255 lines, each line representing one row of tiles, containing 255 * line length characters, with one gridset per z
  -			// since this is the tgm branch any cutoff of x means we just shouldn't iterate this gridset
  -			if(!x_step_count || x_starting_skip)
  -				continue
  -			for(var/i in 1 + y_starting_skip to line_count - y_ending_skip)
  -				var/line = gset.gridLines[i]
  -				if(line == space_key && no_afterchange)
  +		for(var/i in 1 + y_starting_skip to line_count - y_ending_skip)
  +			var/line = gset.gridLines[i]
  +
  +			var/xcrd = true_xcrd
  +			for(var/tpos in 1 + x_starting_skip to x_target step key_len)
  +				var/model_key = copytext(line, tpos, tpos + key_len)
  +				if(model_key == space_key && no_afterchange)
   					#ifdef TESTING
   					++turfsSkipped
   					#endif
  -					ycrd--
   					MAPLOADING_CHECK_TICK
  +					++xcrd
   					continue
  -
  -				var/list/cache = modelCache[line]
  +				var/list/cache = modelCache[model_key]
   				if(!cache)
   					SSatoms.map_loader_stop()
  -					CRASH("Undefined model key in DMM: [line]")
  -				build_coordinate(cache, locate(true_xcrd, ycrd, zcrd), no_afterchange, placeOnTop, new_z)
  +					CRASH("Undefined model key in DMM: [model_key]")
  +				build_coordinate(cache, locate(xcrd, ycrd, zcrd), no_afterchange, placeOnTop, new_z)
   
   				// only bother with bounds that actually exist
   				if(!first_found)
   					first_found = TRUE
  +					first_x = xcrd
   					first_y = ycrd
  +				last_x = xcrd
   				last_y = ycrd
  -				ycrd--
   				MAPLOADING_CHECK_TICK
  -			// The x coord never changes, so this is safe
  -			if(first_found)
  -				first_x = true_xcrd
  -				last_x = true_xcrd
  -		else
  -			// This is the dmm parser, note the double loop
  -			for(var/i in 1 + y_starting_skip to line_count - y_ending_skip)
  -				var/line = gset.gridLines[i]
  -
  -				var/xcrd = true_xcrd
  -				for(var/tpos in 1 + x_starting_skip to x_target step key_len)
  -					var/model_key = copytext(line, tpos, tpos + key_len)
  -					if(model_key == space_key && no_afterchange)
  -						#ifdef TESTING
  -						++turfsSkipped
  -						#endif
  -						MAPLOADING_CHECK_TICK
  -						++xcrd
  -						continue
  -					var/list/cache = modelCache[model_key]
  -					if(!cache)
  -						SSatoms.map_loader_stop()
  -						CRASH("Undefined model key in DMM: [model_key]")
  -					build_coordinate(cache, locate(xcrd, ycrd, zcrd), no_afterchange, placeOnTop, new_z)
  -
  -					// only bother with bounds that actually exist
  -					if(!first_found)
  -						first_found = TRUE
  -						first_x = xcrd
  -						first_y = ycrd
  -					last_x = xcrd
  -					last_y = ycrd
  -					MAPLOADING_CHECK_TICK
  -					++xcrd
  -				ycrd--
  -				MAPLOADING_CHECK_TICK
  +				++xcrd
  +			ycrd--
  +			MAPLOADING_CHECK_TICK
   		bounds[MAP_MINX] = min(bounds[MAP_MINX], first_x)
   		bounds[MAP_MINY] = min(bounds[MAP_MINY], last_y)
   		bounds[MAP_MINZ] = min(bounds[MAP_MINZ], zcrd)
  
positive.code: 			gridSet.ycrd += length(gridLines) - 1 // Start at the top and work down
  			bounds[MAP_MAXY] = max(bounds[MAP_MAXY], gridSet.ycrd)
  
  			var/maxx = curr_x
  			if(length(gridLines)) //Not an empty map
  				maxx = max(maxx, curr_x + length(gridLines[1]) / key_len - 1)
  
  			bounds[MAP_MAXX] = max(bounds[MAP_MAXX], maxx)
  		CHECK_TICK
  
negative.code: 
  	// raw strings used to represent regexes more accurately
  	// '' used to avoid confusing syntax highlighting
  	var/static/regex/dmm_regex = new(@'"([a-zA-Z]+)" = (?:\(\n|\()((?:.|\n)*?)\)\n(?!\t)|\((\d+),(\d+),(\d+)\) = \{"([a-zA-Z\n]*)"\}', "g")
  	/// Matches key formats in TMG (IE: newline after the \()
  	var/static/regex/matches_tgm = new(@'^"[A-z]*"[\s]*=[\s]*\([\s]*\n', "m")
  	/// Pulls out key value pairs for TGM
  	var/static/regex/var_edits_tgm = new(@'^\t([A-z]*) = (.*?);?$')
  	/// Pulls out model paths for DMM
  	var/static/regex/model_path = new(@'(\/[^\{]*?(?:\{.*?\})?)(?:,|$)', "g")
  
  	#ifdef TESTING
  	var/turfsSkipped = 0
  