Hanjun-Dai / graphnn

Training computational graph on top of structured data (string, graph, etc)
MIT License
287 stars 91 forks source link

change continuos pop to a simple swap for efficiency #8

Closed chunyang-wen closed 7 years ago

chunyang-wen commented 7 years ago
chunyang-wen commented 7 years ago

replace continuous pop

while (!q.empty()) q.pop();

with

std::queue<std::string>().swap(q);

remove redundant spaces or tabs before or after each line.

Hanjun-Dai commented 7 years ago

Thanks!