Source Code for puts(..)

D

Derril Lucci

Dear all,
I am writing a program that for some reason one of the options takes
20 seconds to run while the other two combined take 12 seconds. I have
the problem narrowed down to one line of code that is always run. This
line executes a shell command via puts(`...`). So, I am convinced the
reason the program takes so long lies in the puts source. If anyone can
direct to that, I would be most grateful.

TL;DR: My code is running slowly and I think puts(..) is the reason
why. Anyone have the source for it?

Cheers,
dlucci
 
R

Robert Dober

Dear all,
=A0I am writing a program that for some reason one of the options takes
20 seconds to run while the other two combined take 12 seconds. =A0I have
the problem narrowed down to one line of code that is always run. =A0This
line executes a shell command via puts(`...`). =A0So, I am convinced the
reason the program takes so long lies in the puts source. =A0If anyone ca= n
direct to that, I would be most grateful.
I am convinced that the reason lies in the shell command.
If you are not, try this
p "starting"
x =3D `...`
p "end"
puts x
HTH
R.
TL;DR: =A0My code is running slowly and I think puts(..) is the reason
why. =A0Anyone have the source for it?

Cheers,
=A0dlucci



--=20
The best way to predict the future is to invent it.
-- Alan Kay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top