Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 79357

Performance is a subset of Optimization: performance is the goal when you want the execution time of your program or routine to be optimal.

1 vote
1 answer
218 views

Saving and/or Printing a Word Document From C#

This is the Microsoft Word portion of the application described in this question. It is considerably simpler than the excel portion of the project. Any classes not defined in this question can be foun …
pacmaninbw's user avatar
  • 24k
2 votes
2 answers
90 views

Common Unit Testing Code – Follow Up

A secondary concern is performance, many of the parameters have changed to const. The members of the Test_Log_Data struct have been reordered to improve memory usage. …
pacmaninbw's user avatar
  • 24k
3 votes
2 answers
111 views

C# Tool to Generate MS Word Document Mailbox List From MS Excel

Convert.ToString(TenantDataRange.Cells[row, column].Value2); } tenantTable.Rows.Add(tenantData); } } I'd appreciate any and all help with optimizing that loop for performance … ; string eMsg = "Function CExcelInteropMethods.openTenantRosterWorkSheet() failed: " + e.Message; MessageBox.Show(eMsg); } } // To enhance performance
pacmaninbw's user avatar
  • 24k
2 votes
2 answers
116 views

Get the Nth Term in the Fibonacci Sequence

I'm especially interested in performance, function and variable names and suggestions about how I can increase the range of terms using integers. … As far as performance goes, the program has a nice small memory signature (0.5% of the system memory) speed is where I would be worried. …
pacmaninbw's user avatar
  • 24k
9 votes
3 answers
1k views

Count the frequency of integers in an array

I recently reviewed a question here on Code Review. The problem statement is Write a program that prompts the user to input ten values between 80 and 85 and stores them in an array. Your program m …
pacmaninbw's user avatar
  • 24k
5 votes
1 answer
90 views

Hand Coded State Driven Lexical Analyzer in C With Unit Test Part C

This review is presented in 3 questions due to the amount of code: Part A contains the Lexical Analyzer and the main portion of the unit test code. Part B contains the lower level unit tests called i …
pacmaninbw's user avatar
  • 24k
12 votes
5 answers
2k views

Portable Object-Oriented WC (Linux Utility word Count) C++ 20, Counts Lines, Words Bytes

While the change improved performance and delayed the abort, the program still aborted which makes me think there is a memory issue involved. Questions: Are there any memory leaks? Where? … How can I improve performance? Can I improve the method declarations in the header files? Level of complexity, is any of the code too complex? Modularity, is there too much coupling between classes? …
pacmaninbw's user avatar
  • 24k
4 votes
1 answer
60 views

Hand Coded State Driven Lexical Analyzer in C With Unit Test Part B

This review is presented in 3 questions due to the amount of code: Part A contains the Lexical Analyzer and the main portion of the unit test code. Part B (this question) contains the lower level uni …
pacmaninbw's user avatar
  • 24k
6 votes
1 answer
962 views

Recursive Breadth First Search for Knights Tour

This was written as an experiment in performance, based on another question here on CodeReview. … CurrentMoveIter; CurrentMove.SetOriginCalculateDestination(m_PointOfOrigin); if (CurrentMove.IsValid()) { /** * This might be a good place to improve performance
pacmaninbw's user avatar
  • 24k
5 votes
1 answer
296 views

Knights Tour - Improved Refactored Recursive Breadth First Search for

CurrentMoveIter; CurrentMove.SetOriginCalculateDestination(m_PointOfOrigin); if (CurrentMove.IsValid()) { /** * This might be a good place to improve performance
pacmaninbw's user avatar
  • 24k
3 votes
1 answer
818 views

Recursive Breadth First Search Knights Tour

This program was written on Windows 7 using Visual Studio 2012 Professional. Some of the issues encountered may have been fixed or changed in a more recent version. This is a quote from my second qu …
pacmaninbw's user avatar
  • 24k
9 votes
2 answers
292 views

Hand Coded State Driven Lexical Analyzer in C With Unit Test Part A

This code review is presented in 3 questions due to the amount of code: Part A (this question) contains the Lexical Analyzer and the main portion of the unit test code. Part B contains the lower leve …
pacmaninbw's user avatar
  • 24k
11 votes
1 answer
322 views

Science Fiction Wall of Fame (Shame?)

Are there any obvious bottle necks that would affect the performance of inserts, update or queries? Is there anything in the code that really shouldn’t be done, any bad practices? …
pacmaninbw's user avatar
  • 24k