• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Filters in HF SCWCD

 
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic