Re: Re[2]: Need something like macro

2015-03-09 Thread Kent Fredric
On 10 March 2015 at 09:01, John SJ Anderson wrote: > And the average latency of the network connection you're serving this > captcha over is... ? Its probably a bigger issue if you have > 2,000 customers at any time fetching captchas =). But the question is more "Not is the subroutine slower"

Re: Re[2]: Need something like macro

2015-03-09 Thread John SJ Anderson
On Mon, Mar 9, 2015 at 12:48 PM, Артём Варнайский wrote: Execution time of inline variant approximately 17.6ms, subroutine solution > slower about 26%. My script is captcha generator. Random sign used very > often during execution. I think 26% is a lot enough in this case. > > And the average lat

Re[2]: Need something like macro

2015-03-09 Thread Артём Варнайский
> >On 10 March 2015 at 00:56,  < varnays...@mail.ru > wrote: >> >>I used a nytprof to check performance, function call reduces it. >Its not just "reduces it" that matters. Its whether reducing it in the grand >scale of things is really important. ( vs other parts of the system / general >usecas

Re: Need something like macro

2015-03-09 Thread Kent Fredric
On 10 March 2015 at 00:56, Артём Варнайский wrote: > > I used a nytprof to check performance, function call reduces it. Its not just "reduces it" that matters. Its whether reducing it in the grand scale of things is really important. ( vs other parts of the system / general usecases ) If for i

Re: Need something like macro

2015-03-09 Thread Артём Варнайский
Kent wrote: >Important question: > >How did you prove this was a performance issue. > >Because unless you've > >a) profiled your code >b) benchmarked your code >c) seen that the performance is significantly impeded by that function call >d) seen that the performance is in the function overhead its