Files
rippled/db
Igor Canadi 1510339e52 Speed up FindObsoleteFiles
Summary:
Here's one solution we discussed on speeding up FindObsoleteFiles. Keep a set of all files in DBImpl and update the set every time we create a file. I probably missed few other spots where we create a file.

It might speed things up a bit, but makes code uglier. I don't really like it.

Much better approach would be to abstract all file handling to a separate class. Think of it as layer between DBImpl and Env. Having a separate class deal with file namings and deletion would benefit both code cleanliness (especially with huge DBImpl) and speed things up. It will take a huge effort to do this, though.

Let's discuss offline today.

Test Plan: Ran ./db_stress, verified that files are getting deleted

Reviewers: dhruba, haobo, kailiu, emayanke

Reviewed By: dhruba

Differential Revision: https://reviews.facebook.net/D13827
2013-11-08 15:23:46 -08:00
..
2013-10-30 10:52:33 -07:00
2013-10-30 10:52:33 -07:00
2013-10-28 17:54:09 -07:00
2013-11-08 15:23:46 -08:00
2013-10-28 17:54:09 -07:00
2013-11-08 15:23:46 -08:00
2013-11-08 15:23:46 -08:00
2013-11-08 15:23:46 -08:00
2013-10-28 17:54:09 -07:00
2013-10-25 08:32:14 -07:00
2013-11-07 15:46:48 -08:00
2013-11-08 15:23:46 -08:00
2013-11-08 15:23:46 -08:00