Rose Performance Refactoring: Improved the performance of isSgXXX function via a table-driven approach