Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Premium Land with House for Sale
anil1961
Updated:
Friday at 10:15 AM
AWS Certified Solutions Architect-Associate + AWS Certified Cloud Practitioner
Sanjeewani95
Updated:
Wednesday at 8:16 PM
🚀 එක පැකේජ් එකයි - මාසෙටම Unlimited Internet! 🌐
sayuru bandara
Updated:
Tuesday at 10:57 AM
🎬 CapCut Pro 1 Month Access! LKR 600
sayuru bandara
Updated:
Tuesday at 10:55 AM
🚀 Google One AI PRO Plan (Gemini Pro Activation) – 18 Months Access! LKR 2200
sayuru bandara
Updated:
Tuesday at 10:53 AM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Programming වැඩ්ඩොන්ගෙන් හෙල්ප් එකක්, Come here
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="SENCE" data-source="post: 20957932" data-attributes="member: 557120"><p><span style="font-size: 18px">Mate, in this code, since it does not have any third party dependency (like IO requests) speed is depend on the number of instructions.</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">So in the first program as you mentioned, number of instructions are higher than the second one and it takes more time than the second one. you can check this using a high frequency stopwatch (You can find some code <a href="https://www.google.lk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=c%2B%2B+high+resolution+timer+windows" target="_blank">here</a>) </span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">But in today's computers, this time is infinitesimal(even in your P4 machine).</span></p><p><span style="font-size: 18px"></span></p><p><span style="font-size: 18px">If your code is slow, the major reason could be the IO requests; Database calls, file read write, service calls etc. Additionally it could be due to if you process large number of records in run-time (like 10K+). </span></p><p><span style="font-size: 18px">You can use a stopwatch in .net as well n see where the bottleneck is.</span></p></blockquote><p></p>
[QUOTE="SENCE, post: 20957932, member: 557120"] [SIZE="5"]Mate, in this code, since it does not have any third party dependency (like IO requests) speed is depend on the number of instructions. So in the first program as you mentioned, number of instructions are higher than the second one and it takes more time than the second one. you can check this using a high frequency stopwatch (You can find some code [URL="https://www.google.lk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=c%2B%2B+high+resolution+timer+windows"]here[/URL]) But in today's computers, this time is infinitesimal(even in your P4 machine). If your code is slow, the major reason could be the IO requests; Database calls, file read write, service calls etc. Additionally it could be due to if you process large number of records in run-time (like 10K+). You can use a stopwatch in .net as well n see where the bottleneck is.[/SIZE] [/QUOTE]
Insert quotes…
Verification
Asuwa dahayen wadi kalama keeyada?
Post reply
Top
Bottom