stevesea / Adventuresmith

Generate tabletop RPG nonsense at the push of a button! (on Android)
https://stevesea.github.io/Adventuresmith/
GNU General Public License v3.0
74 stars 16 forks source link

refactor generator pipeline #154

Closed stevesea closed 7 years ago

stevesea commented 7 years ago

reading files from classpath is slow. http://blog.nimbledroid.com/2016/04/06/slow-ClassLoader.getResourceAsStream.html

putting the file-loading in 'core' also means that's where the caching lives.

seems like the app layer would know best how to find & cache files for its platform. this refactoring would also be useful for when loading data files from HTTP (lots of handy android utils to do this efficiently).

this needs a lot of design thought