Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    Oakland, CA
    Posts
    45
    Thanks
    1
    Thanked 0 Times in 0 Posts

    code optimizers?

    Hello all,

    Wondering about code optimization; Are there any online scripts or software that optimize javascript? Some of my files are big, and I want to do more than remove white space and tab characters.

    Would it be crazy to make something like this in JS? If so, I'm game if you are!

    TIA

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    depends what you mean by crazy.

    some can be off good use e.g. they remove all comments (this means you need to keep a commeted copy). So if oyu have large comments it may be of use.

    If you have extremely large files it may be beneficial to maybe rethink your method and look at loops and other external javascript files to include in part of your script.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #3
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    The question is what you want to optimise for:
    - Loading time (reduce size, use mod_gzip)
    - Running speed (increase efficiency, limit workload, use temporary storage)
    - Memory usage (destructible items, closures, temporary variables)
    or.... [drumroll]
    - Debuggability (increase verboseness, code points, comments)

    I'd say the running speed is pretty often the best thing to optimise for, though loading speed is always something, too.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,033
    Thanks
    0
    Thanked 248 Times in 245 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •