Even faster (avoiding some string allocations)
    
    
    import memfiles
    for line in memSlices(memfiles.open("foo")):
      inc(i)
    

Reply via email to