comparison pyrect/jitgrep.py @ 62:a05baa7dc7ba

modify I/O routine. use mmap. it's really faster than fgets ;-)
author Ryoma SHINYA <shinya@firefly.cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Nov 2010 01:37:35 +0900
parents fd3d0b8326fe
children 4de11d799dee
comparison
equal deleted inserted replaced
60:5ab54a732ddb 62:a05baa7dc7ba
60 except ValueError: 60 except ValueError:
61 psr.print_usage() 61 psr.print_usage()
62 return 62 return
63 63
64 if opts.time : start_time = time.time() 64 if opts.time : start_time = time.time()
65 reg = Regexp(string) 65 reg = Regexp(".*"+string)
66 if cbc: 66 if cbc:
67 grept = CbCGREPTranslator(reg) 67 grept = CbCGREPTranslator(reg)
68 elif opts.label: 68 elif opts.label:
69 grept = GoToGREPTranslator(reg) 69 grept = GoToGREPTranslator(reg)
70 else: 70 else: