Menu

[8f66b6]: / test.py  Maximize  Restore  History

Download this file

19 lines (13 with data), 525 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import os, re
from fulltextindex.FullTextIndex import FullTextIndex, FileQuery
from typing import List, Tuple, Iterator, Iterable, Pattern, Any, Sized, Optional, Literal
# fti = FullTextIndex("C:\\Users\\oliver\\AppData\\Local\\CodeBeagle\\New location.dat")
# q = FullTextIndex.FileQuery("widget*", "opengl", "-.h")
# r = fti.searchFile(q)
# print(r)
cq = FileQuery("", "test", ".h,.c,.cpp")
def totime():
cq.matchFolderAndExtensionFilter("test.cpp")
import timeit
print(timeit.timeit(totime))
# Orginal: 0.5057702
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.