Commit b61a0ea
committed
src/sage/interfaces/maxima_abstract.py: micro-optimize _commands()
The _commands() method checks the first character of each command to
make sure that it starts with a letter. This _was_ searching a tuple
(containing 'a' to 'Z'), but it seems to be much faster if we
concatenate them all into one string and search that instead.1 parent 903c60e commit b61a0ea
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| |||
0 commit comments