Commit 651df81
committed
Simplify backend_ps._nums_to_str.
_num_to_str is never used by itself and can be folded into the plural
version. It is never called with a str argument so that check can be
removed. Exact integer arguments can also be directly handled by the
floating-point handling path (Technically, this will cause a rounding
error for integers greater than `2**53`, but the PostScript standard
only supports 32-bit integers anyways); the performance cost should be
negligible (in fact, possibly more than compensated by the removal of
the instance check in the common case of float arguments).1 parent 01fb7bb commit 651df81
1 file changed
Lines changed: 1 addition & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 91 | | |
106 | | - | |
| 92 | + | |
107 | 93 | | |
108 | 94 | | |
109 | 95 | | |
| |||
0 commit comments