Comments (5)
Hi @jacky0218
AIO programming means that the HTTP IOs under the hood are managed using async/await and an asyncio event loop, in order to avoid blocking code on sockets. If the Azure service needs 11 seconds to process your PDF, you can't finish faster than what the service will do, you just do a better usage of your local CPU and socket usage with aio. Therefore, the times you got here sounds reasonable given your limitation is service related, not Python related. To say it differently, if you run the same PDF through C# or Java SDK, you will still get 11 seconds, since the SDK is just a messenger here and there isn't heavy processing done by the SDK in this specific scenario.
from azure-sdk-for-python.
Thank you for your feedback. Tagging and routing to the team member best able to assist.
from azure-sdk-for-python.
@jacky0218 thanks for your feedback, @YalinLi0312 will take a look and get back to you as soon as possible. Can I ask how you're measuring speed between sync and async?
from azure-sdk-for-python.
@kristapratico
Thanks for the support.
I've tested a 5-page PDF, and the speed from sync is 11.322867231443524. Async yields a speed of 11.022184098139405.
from azure-sdk-for-python.
Hi @jacky0218. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.
from azure-sdk-for-python.
Related Issues (20)
- Using Azure SDK for Python to run Workflows in Azure Purview HOT 2
- Missing websocket-client dependency for azure-servicebus HOT 1
- Using the LANGUAGES add-on breaks Document Intelligence HOT 2
- receiver.complete_message(msg) is not settling the message in Service Bus Queue HOT 8
- [bct] Add test for code report scenario
- Intermittent failure to get token under azure-core-1.30.2 HOT 5
- Machine Learning Sample Issue HOT 2
- Cosmos DB Sample Issue HOT 1
- TypeError: Received message 257:None is not bytes HOT 1
- Offline / DR Drill region switch issue on Cosmos Python SDK
- Add / Remove Region error handling testing
- Retry mechanism for query operations for connection related issues
- Session Token Gaps in Cosmos Python SDK
- Capture Session Token on read operations as well
- Expose the Feed Range API in Cosmos Python SDK
- Allow customers to retrieve response headers through response hook
- Scale up test workload for Cosmos Python SDK for DR Drill and performance testing
- [EventHub] AMQPException info docstring type should match type annotation
- OnlineRequestSettings doesn't support expiring stale requests HOT 1
- [bct] Make allowlist generic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-sdk-for-python.