Menu

#102 Remove/Encapsulate boost::math (removing boost #1)

0.2.1
done
nobody
None
nobody
2017-12-26
2017-08-21
Ulf Lorenz
No

Boost is a major drag when you want to compile anything, as the huge number of headers slows down the compilation considerably.

In this issue, we want to remove one dependency, namely boost::math. It should only be referenced in a handful of special files (special_functions.cpp, maybe something like special_constants.cpp), everything else should reference a forward from the corresponding header files.

  • add forwards for all used special functions to special-functions.*
  • add forwards for all used constants either in special_functions.* or a separate special_constants.*
  • remove all includes for boost::math

Measure the effect of this cleanup on compile times!


Added an own helper function to get value of pi only. Everything else was strongly localized. The effect on compile times was negligible (~ 1%)

Related

Tickets: #84

Discussion

  • Ulf Lorenz

    Ulf Lorenz - 2017-11-11
    • Milestone: Backlog --> 0.3 goal
     
  • Ulf Lorenz

    Ulf Lorenz - 2017-12-03
    • Milestone: 0.3 goal --> 0.2.1
     
  • Ulf Lorenz

    Ulf Lorenz - 2017-12-23
    • status: open --> assigned
    • assigned_to: Ulf Lorenz
     
  • Ulf Lorenz

    Ulf Lorenz - 2017-12-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -7,3 +7,7 @@
     * remove all includes for boost::math
    
     Measure the effect of this cleanup on compile times!
    +
    +----
    +
    +Added an own helper function to get value of pi only. Everything else was strongly localized. The effect on compile times was negligible (~ 1%)
    
    • status: assigned --> done
    • assigned_to: Ulf Lorenz --> nobody
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.