skypilot icon indicating copy to clipboard operation
skypilot copied to clipboard

[Performance] Move validation calls out of Resource.__init__

Open yika-luo opened this issue 1 year ago • 0 comments

We are initiating the resource object multiple times which triggers non-trivial validation. https://github.com/skypilot-org/skypilot/blob/master/sky/resources.py#L228-L234

Version & Commit info:

  • sky -v: PLEASE_FILL_IN
  • sky -c: PLEASE_FILL_IN

yika-luo avatar Oct 24 '24 01:10 yika-luo