• 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
..
compat Loading commit data...
Makefile.am Loading commit data...
binary_heap.h Loading commit data...
cli.h Loading commit data...
cli_common.h Loading commit data...
cli_priv.h Loading commit data...
flopen.h Loading commit data...
http_headers.h Loading commit data...
http_response.h Loading commit data...
libvarnish.h Loading commit data...
libvcl.h Loading commit data...
miniobj.h Loading commit data...
persistent.h Loading commit data...
purge_vars.h Loading commit data...
shmlog.h Loading commit data...
shmlog_tags.h Loading commit data...
stat_field.h Loading commit data...
stats.h Loading commit data...
svnid.h Loading commit data...
varnishapi.h Loading commit data...
vbm.h Loading commit data...
vcl.h Loading commit data...
vcl_returns.h Loading commit data...
vct.h Loading commit data...
vev.h Loading commit data...
vlu.h Loading commit data...
vpf.h Loading commit data...
vqueue.h Loading commit data...
vrt.h Loading commit data...
vrt_obj.h Loading commit data...
vsb.h Loading commit data...
vsha256.h Loading commit data...
vss.h Loading commit data...