Spring4D 1.2 fun fact:
Spring4D 1.2 fun fact:
Generic lists of objects or interfaces will only increase the binary size by less than 1K (exact number depends on compiler version) - System.Generics.Collections are around 14K.
Generic lists of objects or interfaces will only increase the binary size by less than 1K (exact number depends on compiler version) - System.Generics.Collections are around 14K.
Nice ;-)
ReplyDeleteVery nice!
ReplyDeleteHow did you manage it?
David Millington Check for yourself ;)
ReplyDeletehttps://bitbucket.org/sglienke/spring4d/commits/8c5a6a0a80a71e0171a97b96c696644d7c4f9ffc
(don't mind the commit message - it was late ^^)
Nice work.
ReplyDeleteStefan Glienke So you separated out a base generic class, which means there's one instance of that generated by the compiler per type T, rather than many per T and type of container?
ReplyDeleteDavid Millington Exactly.
ReplyDelete