Web application optimize/minify it for traffic/bandwidth usage
hi all, i m back with another question.
To put it into a different perspective... Your question is like asking "What should I do to make a good car?" There is no way to answer with anything specific. Each application/site has many different ways it could be optimized, but without seeing any specific concerns or knowing anything about where there might be room for optimization the most anyone can hope to give is generic advice.
So on that note, I suggest reading articles and white papers on optimization.
Hopefully all those processor intensive replace calls are only done once when moving your code into production. Otherwise what little gain you'll get by reduced file sizes will be lost in the processing time it takes to produce the files to the server for sending to the client.
There are usually several types of things you can look at to speed up a site. Bandwidth required (number of connections needed), file sizes, processing time, memory usage, etc...Focusing on just one of those at the expense of others won't usually show much overall gain in the end.
you said right. i m using those functions to compress output before being sent to client so that it requires less traffic as this web application will also be accessed on smart phones. and also the content is database driven so I can just compress the output.