dodexahedron

Results 378 comments of dodexahedron

ArrayPool exists for more efficient allocation of arrays and reduced garbage collector activity. All you need to do, in this case, is exactly as shown, when constructing the HashSet. After...

As for repetitive calculations: You can perform several hundred operations on the stack in the time just a _single_ operation that involves a heap access takes. The heap is _EXPENSIVE_....

That 256 number was important, BTW. - Best to use powers of 2. - 256 is unlikely to be exceeded. - 256 * 16 (size of a Rectangle) = 4K,...

Have you looked at some of the other existing drawing/graphics-related libraries out there? There are some that are fantastic and highly optimized. And if only some functionality is needed, specific...

If implementing from scratch, here are a couple of ideas for what might represent pretty significant but easy-to-code optimizations at very low cost: One is to keep track of at...

Another idea: Create two or more bitmaps/collections of values - One or more of which are metadata for each screen coordinate and one of which is explicit content of that...

I empathize with the desire to avoid a seemingly more complex scenario. However, both of those issues are performance killers all by themselves, which defeats the purpose. I haven't looked...

Is the current code on your branch the latest you have? I'm going to clone that branch so I can look at it in context.

I know this is a WIP but don't forget nullability context! In the top few lines of the classes I can already see places that need those annotations.

> > I know this is a WIP but don't forget nullability context! In the top few lines of the classes I can already see places that need those annotations....