LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: Matthias on June 24, 2011, 16:47:30

Title: [FIXED] Load icons from String instead of using a byte[]
Post by: Matthias on June 24, 2011, 16:47:30
Initializing a byte[] is done via code using lots of array store instructions. This results in a huge file class size.

Replace the initialized byte[] with a String and create the ByteBuffer from that. This saves 20KB of class file size and less code the execute (via interpreter) on start up.