Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I was testing things out and noticed that when I made Google API calls, my program would create 2 extra goroutines (went from 1 to 3 goroutines). I feel like this would lead to a problem where too many goroutines are created.
Do API calls create goroutines?
Not inherently. But many implementations of APIs of course will.
I was testing things ... my program would create 2 extra goroutines.
Why do you think this is "extra"? It's probably exactly the right number of goroutines.
I feel like this would lead to a problem where too many goroutines are created.
Don't. You are wrong to feel this way. There's absolutely nothing wrong with using goroutines--that's why they exist.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How to improve performances in UIPath? What are the activities can we use in automation to increase performance speed? List out the activities that should be avoid.
First, it is always a good idea to program your RPA with visible actions to make sure that you can achieve the result that you want while seeing the workflow in action, then you can increase performance switching between the input methods (Default, SimulateType, SendWindowMessages) so you can make your RPA work in the background.
https://www.youtube.com/watch?v=fuyRjiXLaRc
As of the output methods, avoid using OCR activities as much as you can since they will slow down your process comparing to (Full text, native).
https://studio.uipath.com/docs/output-or-screen-scraping-methods
If you are working in a citrix environment and you want to interact with an element that doesn't show up immediately avoid using the delay activity since it could not show up in the amount of time that you have programmed, use the wait image activity instead.
https://www.youtube.com/watch?v=EmaQ_BLwgaw
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Scheme lists are slow for random access, which is a common operation in many applications such as image processing. Does this make it naturally handicapped for that kind of application?
If performance is a concern, then you should definitely consider using fixed-access-time structures. Fortunately, Scheme has lots of these, too. The "vector" is the simplest one; it's a close match to what most languages call an "array".
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Which is better, small data size and more server requests, or large data size and fewer requests? Larger data size means longer processing time on ther server. How does this scale out thouh as the number of users and their activity increases?
It is always ideal to get all that you need in as many less calls as you can. If you can get all that you need in one call, definitely do it.
Also it will be very helpful if you can give some insight of what kind of application are we talking about here.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I was just wondering- is there an automated way that the "report abuse" (for profane or inappropriate posts) feature works for a large website like, say, Amazon? Is it just a simple game of numbers (e.g. 100 ppl report the link so it should be taken down) or something more sophisticated?
It is a link on a website that the website-owner implemented? I don't think there is a some sort of top-down regulated method of implementing this, everyone does it's own thing. Some will be 'just simple numbers', some will be more sophisticated.
SO does both I guess: the more flags, the more a problem (spam for instance) gets attention of people who can lock, and flags of some users way heavier then others...
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm having Memcache problems and I was wondering what is the best way to know how big the objects I create are.
The only solution I have is to put them into Memcache which display their size in bytes (by the way, can I customize Memcache's output? I want readable kilobytes…).
Thank you,
Kevin
The excellent Eigenclass blog had an interesting article on that once:
http://web.archive.org/web/20120126022146/http://eigenclass.org/R2/writings/object-size-ruby-ocaml
There also was a good discussion on ruby-talk, which led to some code by Robert Klemme (Ruby Best Practices):
http://www.ruby-forum.com/topic/156648
http://www.pastie.org/217131
Plugging the values from the first article into the script might get you started and is probably quite educational.
You could also check out memprof, though it's more about object references and finding memory leaks than actual sizes:
http://github.com/ice799/memprof