glutin icon indicating copy to clipboard operation
glutin copied to clipboard

Make the error size smaller

Open notgull opened this issue 1 year ago • 2 comments

The Error struct is six words wide. In comparison, most of the types returned via Result are one or two words wide. This means that there is about four words of space wasted in every Result. This could be fixed by making the Error type smaller, perhaps by Boxing its innards.

notgull avatar Jun 07 '23 03:06 notgull