Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
maurizi committed Jan 12, 2022
1 parent 8cba67b commit cb22be0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/manage/src/commands/serialize-topojson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default class SerializeTopojson extends Command {

static strict = false;

// Streaming reader for GeoJSON files. Works on files over 1GB, but is slow.
// Streaming reader for GeoJSON files. Works on files over 512MB, but is slow.
async readBigJson(path: string): Promise<FeatureCollection<Polygon, {}>> {
return new Promise(resolve =>
createReadStream(path, { encoding: "utf8" })
Expand Down
4 changes: 2 additions & 2 deletions src/server/src/districts/services/topology.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { getObject, s3Options } from "../../common/s3-wrapper";

const MAX_RETRIES = 5;
// Loading a topojson layer is a mix of I/O and CPU intensive work,
// so we can afford to have more concurrent than we have cores, but not too many
// so we can afford to have more layers loading than we have cores, but not too many
const BATCH_SIZE = cpus().length * 2;
// 10 largest states by geojson file size
const STATE_ORDER = ["TX", "CA", "PA", "FL", "NC", "MO", "NY", "IL", "TN", "VA"];
Expand Down Expand Up @@ -73,7 +73,7 @@ export class TopologyService {
STATE_ORDER.indexOf(region.regionCode)
]);

// Load regions a number of regions in parallel, adding as each one completes
// Load a number of regions in parallel, adding another as each one completes
await asyncLoop(
sortedRegions.map(region => () => {
const promise = this.fetchLayer(region.s3URI, region.archived);
Expand Down

0 comments on commit cb22be0

Please sign in to comment.