As by the documentation, there is only one method in API that can return Problem object for any problem, it is problems.list (contest.problems returns only for the problems within the contest).
problems.list loads an information about all the problems you have an access to, and this is very slow. I think one of the reasons is that the return value for this method is very large. Please, introduce another method, some options are:
get the problem by it's numeric id
get all problems by it's shortname
get the problem by it's shortname and an owner
It could be one method that supports problem filtering by different criteria. May be problems.list can take id, name, and/or owner as arguments.
As by the documentation, there is only one method in API that can return
Problem
object for any problem, it isproblems.list
(contest.problems
returns only for the problems within the contest).problems.list
loads an information about all the problems you have an access to, and this is very slow. I think one of the reasons is that the return value for this method is very large. Please, introduce another method, some options are:It could be one method that supports problem filtering by different criteria. May be
problems.list
can takeid
,name
, and/orowner
as arguments.