-
| fsspec logs the range requests it does but I don't think it makes a distinction of how many bytes came from the cache vs actual requested bytes, would this be too complicated to implement in the caching.py classes? | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            betolink
          
      
      
        Feb 18, 2024 
      
    
    Replies: 1 comment 4 replies
-
| FWIW I'll try to take a stab at this next week | 
Beta Was this translation helpful? Give feedback.
                  
                    4 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Hi @martindurant, I did a first pass and seems to be working as expected, by adding counters in the base class and updating the debug message accordingly I'm now getting these logs:
totalis the total requested bytes, and cache hits vs misses inblockcacheis a bit tricky because unless we keep reading from the same block over and over we'll have 1 miss + 1 hits on each pass. I added some unit tests for these numbers.https://github.com/betolink/filesystem_spec/blob/master/fsspec/tests/test_caches.py
I also consolidated the
__repr__and I feel like there is room for so…