Comment

Comment by ssd532

> You could probably improve the above by using an interface rather than a bool to reduce the memory impact. If you need a function that preserves the order that might be a better implementation.

An empty interface occupies 16 bytes. Perhaps the author meant an empty struct which consumes nothing.

parent ssd532 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton