update todos
This commit is contained in:
parent
87edb5ba2d
commit
651d2ec542
@ -310,6 +310,7 @@ pub fn run_cmd_line() {
|
|||||||
|| (cur_state == InstState::Editing && timed_update_ready)
|
|| (cur_state == InstState::Editing && timed_update_ready)
|
||||||
{
|
{
|
||||||
let s = status.get();
|
let s = status.get();
|
||||||
|
// TODO: Update duration format? e.g. 1m 42s remaining
|
||||||
print_progress(s.blocks_done, s.blocks_total,
|
print_progress(s.blocks_done, s.blocks_total,
|
||||||
querying_start, editing_start);
|
querying_start, editing_start);
|
||||||
last_update = now;
|
last_update = now;
|
||||||
|
@ -9,6 +9,9 @@ use crate::utils::query_keys;
|
|||||||
use crate::time_keeper::TimeKeeper;
|
use crate::time_keeper::TimeKeeper;
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: This and overlay--cache mapblocks in deserialized form.
|
||||||
|
|
||||||
|
|
||||||
fn clone(inst: &mut InstBundle) {
|
fn clone(inst: &mut InstBundle) {
|
||||||
let src_area = inst.args.area.unwrap();
|
let src_area = inst.args.area.unwrap();
|
||||||
let offset = inst.args.offset.unwrap();
|
let offset = inst.args.offset.unwrap();
|
||||||
|
@ -9,6 +9,7 @@ fn vacuum(inst: &mut InstBundle) {
|
|||||||
inst.status.log_info("Starting vacuum.");
|
inst.status.log_info("Starting vacuum.");
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
|
|
||||||
|
// TODO: Show simple timer in main thread.
|
||||||
match inst.db.vacuum() {
|
match inst.db.vacuum() {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
let time = fmt_duration(start.elapsed());
|
let time = fmt_duration(start.elapsed());
|
||||||
|
@ -81,6 +81,7 @@ impl MapBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn serialize(&self) -> Vec<u8> {
|
pub fn serialize(&self) -> Vec<u8> {
|
||||||
|
// TODO: Use a bigger buffer (unsafe?) to reduce heap allocations.
|
||||||
let mut buf = Vec::with_capacity(BLOCK_BUF_SIZE);
|
let mut buf = Vec::with_capacity(BLOCK_BUF_SIZE);
|
||||||
let mut data = Cursor::new(buf);
|
let mut data = Cursor::new(buf);
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ use crate::spatial::{Area, Vec3};
|
|||||||
pub fn query_keys(
|
pub fn query_keys(
|
||||||
db: &mut MapDatabase,
|
db: &mut MapDatabase,
|
||||||
status: &StatusServer,
|
status: &StatusServer,
|
||||||
|
// TODO: Allow multiple names for setmetavar and replaceininv.
|
||||||
search_str: Option<&[u8]>,
|
search_str: Option<&[u8]>,
|
||||||
area: Option<Area>,
|
area: Option<Area>,
|
||||||
invert: bool,
|
invert: bool,
|
||||||
|
10
todo.md
10
todo.md
@ -1,10 +0,0 @@
|
|||||||
Optimizations:
|
|
||||||
|
|
||||||
- Cache deserialized map blocks instead of deserializing each time.
|
|
||||||
- Overlay: Iterate map blocks in space-filling curve shape to optimize cache usefulness.
|
|
||||||
- (DONE) Don't re-compress node data/metadata if it isn't changed.
|
|
||||||
- MapBlock::serialize: Use a big buffer somewhere to avoid heap allocations.
|
|
||||||
|
|
||||||
Todo?
|
|
||||||
|
|
||||||
- Fold area utility functions into the area struct.
|
|
Loading…
x
Reference in New Issue
Block a user