Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
lalsuite
Commits
83c2e028
Commit
83c2e028
authored
Feb 01, 2017
by
Leo P. Singer
Browse files
Add comment about cache size
Original: fb499b27424c7d05f43c66771de41958b0318877
parent
213c66b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lalinference/src/bayestar_sky_map.c
View file @
83c2e028
...
...
@@ -253,13 +253,12 @@ typedef struct {
* point in the data grid. This will speed up the cubic interpolant by 4x at
* the expense of increasing the memory footprint by 16x.
*
* On the other hand, this implementation fits in the L2 cache whereas the
* precomputed version would not.
*
* We can also decrease the amount of branching by checking for infinities when
* we precompute the matrices and we can reduce the number of conditionals
* needed for bounds checking.
*
* Profiling shows that the bicubic interpolant comprises about 50% of the run
* time of the algorithm, so these changes will speed up BAYESTAR by up to 2x
* by making these changes.
*/
static
double
bicubic_interp_eval
(
const
bicubic_interp
*
interp
,
double
x
,
double
y
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment