[PIPE2D-209] Replace C++ implementation of where by an efficient version Created: 23/Jun/17 Updated: 03/Nov/18 Resolved: 03/Nov/18 |
|
| Status: | Done |
| Project: | DRP 2-D Pipeline |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Normal |
| Reporter: | rhl | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
drp_stella makes quite heavy use of where in C++. This is reasonable, but the current implementation is very poor; it uses a string comparison for every element. This needs to be replaced, probably by an implementation that uses a functor (or lambda). The replacement needs to be confirmed to be efficient, which probably means checking the assembler. At the same time, please add overloads to use native LSST image types as appropriate; we should not be calling getArray() anywhere in C++ or python code (outside unit tests). |
| Comments |
| Comment by price [ 03/Nov/18 ] |
|
I don't see any where in the C++ any more. |