[Flashcoders] Do getters and setters add any size to a file
I understand that the Actionscript class files are compiled into bytecode but I have not had enough experience to know whether or not all of this object oriented refactoring that I am doing to my current project is going to make it bulkier. I read somewhere about the different increases in file size due to different assets and wondered how much I had to worry about this type of thing if I'm trying to keep my files as tiny as possible. In particular doe a bunch of getters and setters contribute to end weight such that if a client wants the lightest outcome they might be a factor or is it negligable. Mani ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Do getters and setters add any size to a file
using getters and setters adds no noticeable overhead to your application. Yes the functions add a few bytes, but after compile the difference is undetectable. The benefit you get from proper encapsulation greatly outweighs the slight increase in development time it and script size you get from using getters and setters. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Do getters and setters add any size to a file
In particular doe a bunch of getters and setters contribute to end weight such that if a client wants the lightest outcome they might be a factor or is it negligable. In general, code changes are not going to add noticable weight to the bytecode. Your library assets will usually be the bulk of the swf files weight, and changes/additions in code are going to be so small as to either be unnoticable or will be measurable in hundreds of bytes, not kilobytes. Obviously, there are exceptions. Adding heavy classes like compression algorhithms, or anything with a big library or hash table, will obviously add more weight, but even then it is usually only several kilobytes. ryanm ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Do getters and setters add any size to a file
Thank you. That's good to know because I was worried that with all of my preaching to people about getters and setters that I might hand over a nice fat file and look extra dumb! Mani On 3/7/06, Scott Fanetti [EMAIL PROTECTED] wrote: using getters and setters adds no noticeable overhead to your application. Yes the functions add a few bytes, but after compile the difference is undetectable. The benefit you get from proper encapsulation greatly outweighs the slight increase in development time it and script size you get from using getters and setters. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com