I found performance problems with my application.
So, I created a simple app that simulates the behavior of my app.
This simple app saves the values in the xml file (in isolated storage), displays them in a grid, and can erase them.
The application works fine, but if I add the project NonLinearNavigationService
in some cases the application has serious performance(stability) problems.
You can easily see the problem in this video, that I made:
http://goview.com/?id=9a9ad5d0-a3f2-4f31-ac9f-0879d0ce150b
the code of the app can be downloaded from here:
http://www.fileserve.com/file/ETRb7JP/PhoneApp1.rar
Just try the following steps (as in the video):
1) launch the app and save at least 15-20 values
2) show the grid
3) click on a link to delete a value
4) press the back button
repeat steps 3 to 4
please help me
The problem was in large memory consumption when you generated controls in code-behind for showing the grid. I change logic to listbox and databinding and achieved significantly increasing of performance as you can see on the image.
You could download new project below:
http://www.fileserve.com/file/PK7xQFJ/PhoneApp1.zip
Related
I'm a UI designer working and I want to get a better understanding of what is required for the most efficient and streamlined way to handover of assets to developers - both for the developer and also for me.
I was of the understanding that since SVG files are lossless, they can be resized "on the fly" using CSS/HTML and therefore can just be supplied once (instead of at all the various sizes) - is this a reasonable assumption?
I work with very detailed pages where there are a lot of instances of the same icons and I'm trying to avoid having to "mark for export" (I use Adobe XD) every single instance of an icon on every page. My preference is to provide a master UI file which contains once single instance of each icons in the project.
Any thoughts / input appreciated!
I have not been able to try anything because I'm not a developer and can't see how this works in the code.
My Fine Uploader instance is working fine. Great product and thank you!!
I'm using the JQuery method of implementation.
The issue I'm running in to is on iOS6 (iPad.)
When I select many files (say 6 or more) there is a long pause where nothing happens before the auto upload triggers.
What I'm trying to do is display a dialog to the user during this awkward pause to say "hold on we're processing the files" or something.
I've already tried to throw the dialog in onSubmit, onSubmitted it's simply too late. The pause happens, THEN the dialog appears. I just want the user to not be left hanging during this awkward pause, as I'm dealing with very non-savvy users.
I tried to throw it on validateBatch but I'm doing something wrong.
So finally my question is this:
How/where (which callback or event) would I go about throwing a message to my users after they have selected their files?
You are describing a very specific bug in iOS6. I created a bug report in the Fine Uploader project that covers this. I also opened up a bug report with Apple.
The issue is that Safari on iOS (possibly Chrome too, though I have not verified) takes a noticeable amount of time to trigger the "onchange" event (which Fine Uploader depends on internally) after a user has selected files. The amount of time it takes iOS6 to trigger this event seems to be proportional to the number of files selected at once. This issue in particular is not related to Fine Uploader as it can be reproduced with a simple file input element on an empty page (as indicated in the bug report I linked to).
I'm afraid there is no workaround for this, as far as I know. When a user selects a file or files via a file input element, Fine Uploader has no way of knowing about this until the browser triggers the "onchange" event on the file input.
Note: The bug report I linked to may not load at the writing of this answer as Github is currently down (and has been for a while now).
http://www.puppykisses.org/
i made a WordPress page for a client, and for some reason it is taking over a minute to load the page. The only thing that I could think of being the problem is the amount of photos that he inserted into the slider up top on the home page. It looks like all those pictures need to load before anything else pops up. But then I click on Contact or any other page that has no real images to speak of, and the problem is still there. Just wondering if anyone can point me in the right direction to fix this. thanks!
Like #David said, its the initial request (the source for the page) that is giving you the issues. This means it is unlikely an issue with hosting, and most likely an issue with your code. I would go through any plugins you have installed and disable them one-by-one, and slowly start commenting out your own custom dynamic code bit by bit, till you see what is taking so incredibly long. Then rewrite/excise that code from the site.
Start With the Basics
Keep the number of WordPress plugins you use to a minimum
Get a Proper Hosting Provider
Remove Unnecessary Code From WordPress Header -> http://goo.gl/yfRcF
Use firebug and click Network tab to check loading speed for each files
Check Suggestion how to improve website speed -> http://goo.gl/FtiX3
Install WP Super Cache plugin -> http://wordpress.org/extend/plugins/wp-super-cache/
*If you use gallery try to use image thumbnail rather than load whole images size
I'm trying to solve some problems with AdMob control in my game, and the control takes some time to load (it hijacks UI thread for up to 1 second). Is it possible to load the control once, then store it somewhere and attach it to the visual tree for the subsequent pages?
Or this cannot be done and I do have to find some other way?
Yes you can. You need to save the states of that control on that page.
Please refer this MSDN Documentation for states of windows phone 7
I hope you can better idea from this
UPDATE ====
Deployment.Current.Dispatcher.BeginInvoke(new System.Action(delegate()
{
// Load Your Control Here
}));
It will not freeze your UI
You can simply add the control on a page in runtime with:
this.LayoutRoot.Children.Add( control )
If you statically define your control, you can then remove it from the current page on the OnNavigatingFrom event and after that load it on the next page or something similar to prevent crashing from multiple parents.
Maybe I'm over-thinking this, but here's what I'm trying to accomplish.
I have two MVVM projects (assemblies) in my WP7 app. One page in the main project will call another page in the second project. The second page will allow the user to browse through a list of files on the web and select one to be downloaded to Isolated Storage. The files are rather small.
For a little background: I want two assemblies because this file-selection feature is not used often in the app and I want the Main assembly to be as small as possible to decrease startup time. I also want to be able to re-use this file-selection/download component in other apps.
The simple thing I'm trying to figure out is that when the user selects the file and it is downloaded, I will execute a GoBack() to return to the calling page. On the calling page, I need to know if, in fact, the user downloaded a file or if they cancelled out of the operation by simply hitting the back button. I thought the obvious thing might be to just check for the existence of the file in Isolated storage, but that just feel like a bit of a kludge to me.
I also thought about the Messenger, but I'm not sure how that would work across two assemblies.
Any advice would be appreciated.
Thanks
It is tough to know without looking at the code. However, I would suggest that you could pass back a value to the page depending on whether you successfully downloaded your file. Navigate with the value as follows (pass true or false depending on download success):
NavigationService.Navigate(new Uri(("/Page.xaml?download=true", UriKind.Relative));
Then evaluate the page in the destination as follows:
string download = "";
if (NavigationContext.QueryString.TryGetValue("download", out imageurl))
{
}