Refactoring R code to make it faster and more memory efficient (CC281)

May 9, 2024 • PD Schloss • 1 min read

Based on the extensive benchmarking Pat’s been doing in recent episodes, it’s now time to apply his results to get the code running without blowing out the required amount of RAM. Pat will use the test driven development (TDD) framework to refactor his code to have confidence that the improved code is correct. He also does a quick benchmarking comparison of table and tabulte. This episode is part of an ongoing effort to develop an R package that implements the naive Bayesian classifier.


You can browse the state of the repository at the