sassoftware / saspy

A Python interface module to the SAS System. It works with Linux, Windows, and Mainframe SAS as well as with SAS in Viya.
https://sassoftware.github.io/saspy
Other
367 stars 149 forks source link

This code will greatly slow down the session establishment time, about 85% slower #530

Closed kangcp closed 1 year ago

kangcp commented 1 year ago

https://github.com/sassoftware/saspy/blob/ca4b033b5fb09f4587d0477a5618ab0fa14b34b9/saspy/sasioiom.py#L549

Hello, I am using saspy to operate sas. But starting a sas session takes about 7s on my local computer(use winlocal), and this code takes about 6s. As far as I know, this code may not be necessary to execute in many cases. Is it possible to pass in a formal parameter to control whether this code is running? Or after the session is established, let the user decide whether to run it?

kangcp commented 1 year ago

There will be a 5-6s delay when running sascode for the first time, so it may not work to just comment #549 here

https://github.com/sassoftware/saspy/blob/ca4b033b5fb09f4587d0477a5618ab0fa14b34b9/saspy/sasbase.py#L582