Skip to content

Commit

Permalink
docs: add two TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Dec 5, 2024
1 parent a3f6d6e commit f06e7aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public final class Palette<V> {
private BitArray bitArray;

public Palette(V first) {
// TODO(memory): using v2 by default will waste a lot of memory when the palette is empty
this(first, BitArrayVersion.V2);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class AllayLightService implements LightService {
protected final int maxHeight;
protected final int sectionCount;
protected final boolean hasSkyLight;
// TODO(memory): use a more memory-efficient queue, for example a long queue
protected final BlockingQueueWrapper<Runnable> queue;
protected final LongSet chunks;
protected final Long2ObjectMap<ChunkSectionNibbleArray[]> lightDampening;
Expand Down

0 comments on commit f06e7aa

Please sign in to comment.