Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filters in HF SCWCD

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I executed the filter example in Head first book.
I wanted to test the compression capability so i modified the code in a way below.
}

I was under assumption that if i have large amounts of text data that needs to goes the browser instead of sending it as plain text , i will compress it so that the size would reduce and the user will be able to see the data in a short time. But it happened other way, with compressed data it took nearly 10 seconds and without compression it took 5 seconds.
Have i done something wrong.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Deepak Jain:
I was under assumption that if i have large amounts of text data that needs to goes the browser instead of sending it as plain text , i will compress it so that the size would reduce and the user will be able to see the data in a short time.

There's always a trade off. Doing compression means a greater up front processing cost on the server but less data going across the network.

If sending data over the network is the bottleneck in your application then compression could quicken response time, but I suspect that your server and web browser are run on the same machine so the network latency is already negligible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic