title: How to increase scan speed on Firemonkey (TEdit Component)
body: <p>My question is just about reading value from EAN13 barcode to <strong>TEdit</strong> field. I developed an android application with Delphi Firemonkey which should read 1D Ean13 barcode then it'll process with databases after all give us a result which is correct or not. </p>
  
  <p>Basically, I'm using stored procedure for making these steps but in Firemonkey form, my <strong>TEdit field is too slow</strong> for 1D barcode scanner. My beta test device is <em>Urovo i6200s</em>. <em>Android version is 4.1.2</em> </p>
  
  <p>Now, I'm trying to increase scan speed but I couldn't do it in FMX. Webservice is calling result in 0.0052 second. But <strong>TEdit needs almost 2.5 seconds</strong> for writing my value to <strong>Edit1.Text</strong></p>
  
  <p>By the way I tried to scan my barcode and write it to Default Android Browser and input field in Message application, the result is so fast like my webservice results. Also I tried to write Edit1 without Event references, it's still very very slow. </p>
  
  <p>Is there any solution, optimization or anything I can do?</p>
  
  <p>Edit: Here is my code for asking: But this is not about my code. Its about <strong>TEdit</strong>.</p>
  
  <pre><code>procedure TfrmMain.eBarcodeChangeTracking(Sender: TObject);
  var
    result: integer;
  begin
    lblStatus.Text := '';
  
    if eBarcode.Text.Length = 12 then
    begin
      result := -1;
      try
        result := MyService.CheckBarcode(eBarcode.Text);
      except
        on E: Exception do
        begin
          ShowMessage('Error occurred while reading barcode');
        end;
  
      end;
  
      eBarcode.Text := '';
  
      if result = 0 then
      begin
        lblStatus.Text := 'OK';
      end else 
        lblStatus.Text := 'Failed';
    end;
  end;
  </code></pre>
  
  <p>end;</p>