Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gstlal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Duncan Macleod
gstlal
Commits
d6a5345d
Commit
d6a5345d
authored
6 years ago
by
Kipp Cannon
Browse files
Options
Downloads
Patches
Plain Diff
streamthinca: small performance improvement
- avoid an attribute look-up inside lower_bound_in_seglist()
parent
c1905f6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-inspiral/python/streamthinca.py
+2
-2
2 additions, 2 deletions
gstlal-inspiral/python/streamthinca.py
with
2 additions
and
2 deletions
gstlal-inspiral/python/streamthinca.py
+
2
−
2
View file @
d6a5345d
...
...
@@ -41,7 +41,7 @@
#
import
bisect
from
bisect
import
bisect
_right
import
time
...
...
@@ -231,7 +231,7 @@ def lower_bound_in_seglist(seglist, x):
# NOTE: this is an operation that is performed in a number of
# locations in various codes, and is something that I've screwed up
# more than once. maybe this should be put into segments.py itself
i
=
bisect
.
bisect_right
(
seglist
,
x
)
i
=
bisect_right
(
seglist
,
x
)
return
i
-
1
if
i
else
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment