• Poul-Henning Kamp's avatar
    Remove the vcl_discard{} facility, it does not seem to bring benefits · b1fe4dfd
    Poul-Henning Kamp authored
    which outweigh the trouble it causes.
    
    The original idea was to allow intelligent purging for space reason
    in a size-constrained storage.
    
    In practice, storage is seldomly constrained.
    
    In the cases where it is, I have yet to see any documented benefit
    from using vcl_discard{}, likely because of the fragmentation such
    use would cause.
    
    The implementation of the vcl_discard callback had severe costs in
    code complexity (not fully unrolled by this commit) and locking
    activity.
    
    The straw that breaks the camels back, is that faithfull implementation
    of vcl_discard{} in -spersistence would force us to relocate objects,
    at a cost likely higher than picking them up from the backend.
    
    
    
    git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4099 d4fa192b-c00b-0410-8231-f00ffab90ce4
    b1fe4dfd
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
etc Loading commit data...
include Loading commit data...
lib Loading commit data...
man Loading commit data...
redhat Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README Loading commit data...
autogen.des Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
varnishapi.pc.in Loading commit data...