Skip to content

Commit

Permalink
Nor hardcoding perf filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaih committed Oct 8, 2024
1 parent 48da507 commit 5d91470
Show file tree
Hide file tree
Showing 51 changed files with 2 additions and 31 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 2 additions & 31 deletions src/python/competition.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,37 +400,8 @@ def compile(self, cp):
print('Skip compiling luceneutil: all .class are up to date')
return

# Can we iterate the perf directory and get this list automatically?
files = ['%s/perf/%s' % (perfSrc, x) for x in (
'Args.java',
'IndexState.java',
'IndexThreads.java',
'NRTPerfTest.java',
'Indexer.java',
'KeepNoCommitsDeletionPolicy.java',
'LineFileDocs.java',
'LocalTaskSource.java',
'OpenDirectory.java',
'PKLookupTask.java',
'PKLookupWithTermStateTask.java',
'PointsPKLookupTask.java',
'PerfUtils.java',
'RandomQuery.java',
'RemoteTaskSource.java',
'RespellTask.java',
'SearchPerfTest.java',
'SearchTask.java',
'StatisticsHelper.java',
'Task.java',
'TaskParser.java',
'TaskSource.java',
'TaskThreads.java',
'VectorDictionary.java',
'BenchRearranger.java',
'StringFieldDocSelector.java',
'UnparsedTask.java',
'TaskParserFactory.java',
)]
perfSrcDir = os.path.join(perfSrc, 'perf')
files = list(filter(os.path.isfile, [os.path.join(perfSrcDir, f) for f in os.listdir(perfSrcDir)]))

print('files %s' % files)

Expand Down

0 comments on commit 5d91470

Please sign in to comment.