idolezal commited on
Commit
4a56366
ยท
1 Parent(s): 1fc0ff9

Use shallow copy for faster loading

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -395,7 +395,7 @@ class LeaderboardServer:
395
  if pre_submit == None:
396
  category = category if category else self.TASKS_CATEGORY_OVERALL
397
  with self.var_lock.ro:
398
- return copy.deepcopy(self.leaderboard_dataframes[category])
399
  else:
400
  return self._get_leaderboard(pre_submit=pre_submit, category=category)
401
 
 
395
  if pre_submit == None:
396
  category = category if category else self.TASKS_CATEGORY_OVERALL
397
  with self.var_lock.ro:
398
+ return copy.copy(self.leaderboard_dataframes[category])
399
  else:
400
  return self._get_leaderboard(pre_submit=pre_submit, category=category)
401