Alex Lin 02f7203597
Possible speedup for requesting sie file #1555 (#1570)
* Possible speedup for requesting sie file #1555

When creating the sie file there is a marker string that Trick searches
for where it writes the run time allocated memory.  The loop that was
searching for the string was iterating one character at a time and reading
from file each time.  This was slow.  Changed the loop to read 1Mb into
memory at a time and search for the string.  Handled the case where the
marker string could straddle the 1Mb boundary by copying a small portion
of the previous part of the file for the next search.  For my one test
point sie file generation dropped from 90+ seconds to 3.5 seconds.

* Possible speedup for requesting sie file #1555

Math was wrong on some offset values.  Fixed them now.

* Possible speedup for requesting sie file #1555

The mac won't allow me to declare a "char buff[1000001];".  It compiles
but throws an exception when run.  Changed it to "char *buff = new char[1000001];"
2023-09-15 07:54:29 -05:00
2023-09-07 11:12:05 -05:00
2023-06-26 12:23:58 -05:00
2015-02-25 08:47:59 -06:00
2017-10-05 14:54:39 -05:00
2020-08-28 14:52:23 -05:00

Trick logo

Linux macOS macOS Coverage Status

The Trick Simulation Environment, developed at the NASA Johnson Space Center, is a powerful simulation development framework that enables users to build applications for all phases of space vehicle development. Trick expedites the creation of simulations for early vehicle design, performance evaluation, flight software development, flight vehicle dynamic load analysis, and virtual/hardware in the loop training. Trick's purpose is to provide a common set of simulation capabilities that allow users to concentrate on their domain specific models, rather than simulation-specific functions like job ordering, input file processing, or data recording.

Install Guide Tutorial Documentation
Follow the installation guide to properly configure Trick on your operating system. Complete the tutorial to become familiar with the basics. Visit the documentation for a more complete understanding of Trick.
Related Projects Frequently Asked Questions How-To Guides
View some of the many projects that use Trick. Read some of the most frequently asked questions pertaining to Trick. See a collection of how-to guides detailing common Trick processes.
Developer Docs
Read detailed documentation for various Trick internals and processes.

Trick is released under the NASA Open Source Agreement Version 1.3 license.

Description
Trick Simulation Environment. Trick provides a common set of simulation capabilities and utilities to build simulations automatically.
Readme
Languages
C++ 54.1%
Java 17.8%
Python 9.4%
C 9.1%
Perl 3.1%
Other 6.3%